// 渐变折线图
// https://echarts.apache.org/examples/zh/editor.html?c=line-simple


option = {
  backgroundColor: '#060f2c',
  xAxis: {
    data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'],
    splitLine: {
      show: true,
      lineStyle: {
        width: 0.25,
        type: 'solid',
        color: '#fff'
      }
    },
    boundaryGap: false
  },
  yAxis: {
    splitLine: {
      show: true,
      lineStyle: {
        width: 0.25,
        type: 'solid',
        color: '#fff'
      }
    }
  },
  series: [
    {
      data: [210, 180, 250, 200, 210, 140, 200, 245],
      type: 'line',
      areaStyle: {
        color: {
          type: 'linear',
          x: 0,
          y: 0,
          x2: 0,
          y2: 1,
          colorStops: [
            {
              offset: 0,
              color: '#162c62' // 0% 处的颜色
            },
            {
              offset: 1,
              color: '#060f2c' // 100% 处的颜色
            }
          ],
          globalCoord: false // 缺省为 false
        },
        opacity: 0.4
      }
    },
    {
      data: [260, 160, 200, 240, 190, 220, 155, 255],
      type: 'line',
      areaStyle: {
        color: {
          type: 'linear',
          x: 0,
          y: 0,
          x2: 0,
          y2: 1,
          colorStops: [
            {
              offset: 0,
              color: '#49ffff' // 0% 处的颜色
            },
            {
              offset: 1,
              color: '#060f2c' // 100% 处的颜色
            }
          ],
          globalCoord: false // 缺省为 false
        },
        opacity: 0.4
      }
    }
  ]
};